package com.itheima.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.mapper.EmpLogMapper;
import com.itheima.pojo.*;
import com.itheima.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogServiceImpl implements LogService {
@Autowired
EmpLogMapper empLogMapper;
    @Override
    public PageResult selectLog(Integer page, Integer pageSize) {
//        PageHelper.startPage(page,pageSize);
//        Page<EmpLog> page1 =(Page<EmpLog>) empLogMapper.selectLog(page,pageSize);
//        long total = page1.getTotal();
//        List<EmpLog> rows = page1.getResult();
//        return new PageResult<EmpLog>(total,rows);

        return null;
    }
}
